# -*- coding: utf-8 -*-
"""
Created on Mon Sep 27 09:05:30 2021

@author: SIO2
"""

def Mystere(T):
    #Debut Fonction
    K=T[1]+10*T[0]
    if K>45:
        K=1900+K
    else:
        K=2000+K
    #Fin Fonction

def Mystere2(T):
    #Debut Procédure
    K=0
    L=""
    K=Mystere(T)
    L=2021-K
    print("Le nombre d'année dans l'entreprise est':",L)
    #Fin Procédure

def Service(T):
    #Debut Procédure
    K=0
    M=""
    K=T[6]
    if K==0:
        M="Direction"
    elif K==1:
        M="Secrétariat"
    elif K==2:
        M="Gestion"
    elif K==3:
        M="Informatique"
    elif K==4:
        M="Communication"
    elif K==5:
        M="Entretien"
    elif K==6:
        M="Fabrication"
    print(M)
    
def Embauche(T):
    #Debut Procédure
    R=""
    for K in range(2,5):
        R=R+T[K]
    print (R)
    #Fin Procédure    
    
def Code(T):
    K=0
    K=T[6]
    if K==1:
        L="Monsieur"
    else:
        L="Madame"
    print(L)
    #Fin Procédure

#Algorithme Principal 
    Nom=str(input("Veuillez saisir le Nom: "))
    Prenom= str(input("Veuillez saisir le Prenom: "))
    T[0,0,0,0,0,0,0,0]
    print("Veuillez saisir le code:")
    for K in range(0,7):
        T[K]=int(input())
    
    print(Code(T),Prenom,Nom,"travaille au",Service(T))
    print(Mystere2(T))
    
    